package sample;

/**
 * Sample Skeleton for 'about.fxml' Controller Class
 */

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.image.ImageView;
import javafx.stage.Stage;

public class About {

    @FXML // fx:id="aboutImage"
    private ImageView aboutImage; // Value injected by FXMLLoader

    @FXML // fx:id="aboutClose"
    private Button aboutClose; // Value injected by FXMLLoader

    @FXML
    void aboutCloseClick(ActionEvent event) {
        Stage stage = (Stage)aboutClose.getScene().getWindow();
        stage.close();
    }

    @FXML // This method is called by the FXMLLoader when initialization is complete
    void initialize() {
        assert aboutImage != null : "fx:id=\"aboutImage\" was not injected: check your FXML file 'about.fxml'.";
        assert aboutClose != null : "fx:id=\"aboutClose\" was not injected: check your FXML file 'about.fxml'.";
    }
}

